import { useModel } from '@umijs/max';
import React, { useEffect } from 'react';
import TableNeeds from './components/TableNeeds';
interface massesPageProps {
  // isEditable: boolean;
  interviewSearchId?: string;
}
const NeedsPage: React.FC<massesPageProps> = ({ interviewSearchId }) => {
  const { initialState } = useModel('@@initialState');
  const getUser = async () => {
    const userInfo = await initialState?.fetchUserInfo?.();
    console.log(userInfo);
  };
  useEffect(() => {
    getUser();
  }, []);
  return (
    <>
      <TableNeeds interviewSearchId={interviewSearchId} />
    </>
  );
};

export default NeedsPage;
